|
|
|
|
|
|
|
Save the form you've been working with in today's lesson to this directory and then choose Project, Add Form from Visual Basic's menu. You should see your form listed in the Add Form dialog box. Of course, to use forms that you've designed previously, you don't need to add them to this directory; the Existing page in the dialog box lets you select a form from any directory on your computer. |
|
|
|
|
|
|
|
|
Using the Template Manager |
|
|
|
|
|
|
|
|
The Template Manager, included on Visual Basic's CD-ROM in the COMMON\TOOLS\VB\UNSUPPRT\TMP LMGR directory, is a Visual Basic add-in that lets you use three types of snippets of building blocks when creating your application. These building blocks allow you to add sections of code, menu, or controls to your application, saving you time in the process. |
|
|
|
|
|
|
|
|
Installing the Template Manager |
|
|
|
|
|
|
|
|
Before you can use the Template Manager, you must install it on your PC and tell Visual Basic that it exists. Follow these steps: |
|
|
|
|
|
|
|
|
1. Copy the add-in file from the CD to your computer. The file can be found in COMMON\TOOLS\VB\UNSUPPRT\TMPLMGR\TEMPMGR.DLL. You can copy it anywhere, but I suggest that you copy it to your Visual Basic directory. |
|
|
|
|
|
|
|
|
2. Register the add-in by using the REGSVR32.EXE program found in the \TOOLS\VB\REGUTILS directory. Copy this program to the same directory as the one you copied TEMPMGR.DLL to. Then execute the following statement from a DOS prompt: |
|
|
|
 |
|
|
|
|
regsvr32 tempmgr.dll |
|
|
|
 |
|
|
|
|
You also can drag TEMPMGR.DLL onto the REGSVR32.EXE file and drop it. Either method registers the manager on your PC. |
|
|
|
|
|
|
|
|
3. Update VBADDIN.INI, a configuration file found in the Windows directory, by adding the following line to the bottom of the file: |
|
|
|
 |
|
|
|
|
TempMgr.Connect=0 |
|
|
|
|
|
|
|
|
Note Edit this file in Notepad or Wordpad; don't edit it in any type of word processing program, as it will cause Visual Basic to operate incorrectly. This file contains many settings that Visual Basic uses to execute properly. |
|
|
|
|
|
|